feat: align Layout::NZ inference with pto-isa 5D form - #1027
Open
HecreReed wants to merge 9 commits into
Open
Conversation
Design proposal for issue hw-native-sys#527. PTOAS currently infers Layout::ND for the canonical pto-isa 2D NZ 5D view ([1, cols/C0, rows/16, 16, C0]) and infers Layout::NZ for a contiguous ND view that happens to match an off-by-one-dim pattern. The doc analyses the root cause, states why shape/stride alone cannot distinguish NZ from a contiguous ND 5D view, proposes a single shared inference utility with an explicit-layout-wins policy plus a guarded canonical pattern rule, and reports the measured blast radius over the lit corpus. No behavior change in this commit (docs only).
HecreReed
marked this pull request as ready for review
July 28, 2026 12:11
…-layout-design # Conflicts: # test/lit/pto/issue872_tput_tnotify_release.pto # test/lit/pto/signal_payload_cache_consistency.pto
Collaborator
Author
|
/run a3 |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A3 板测失败
失败用例
|
A3 板测失败详情:PR #1027syncall_binding
comm_p2p_binding_variants
comm_p2p
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align PTOAS
Layout::NZresolution with the canonical pto-isa 5D representation. This PR now contains the complete issue #527 change: design, implementation, tests, and user documentation.Implemented behavior
ND/DN/NZas authoritative.partition_view/memref.subviewonly when the inner fractal remains intact.partition_viewlayout inheritance.PTOLayoutUtils.Validation
Closes #527